package snowforce.datatype;

import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class PassPoint
{
	private int		point		= -1;
	private long	timestamp	= -1;

	public PassPoint(int point, long timestamp)
	{
		super();
		this.point = point;
		this.timestamp = timestamp;
	}

	public PassPoint()
	{

	}

	public int getPoint()
	{
		return point;
	}

	public String getPointStr()
	{
		String pointStr = point + "";
		while (pointStr.length() < 2) {
			pointStr = "0" + pointStr;
		}
		return pointStr;
	}

	public void setPoint(int point)
	{
		this.point = point;
	}

	public long getTimestamp()
	{
		return timestamp;
	}

	public void setTimestamp(long timestamp)
	{
		this.timestamp = timestamp;
	}

	@Override
	public String toString()
	{
		StringBuilder builder = new StringBuilder();
		builder.append("PassPoint [point=");
		builder.append(point);
		builder.append(", timestamp=");
		builder.append(timestamp);
		builder.append("]");
		return builder.toString();
	}

}